﻿<!DOCTYPE html>
<html>
	<meta charset="UTF-8"/>
	<head>
		<script>
			//json表示方法
			var stu = {
				sno : 1245687,   //学号
				name : "王尼玛", //姓名
				age : 18, 		 //
				clazz : "GP03",  //班级
				sex : 1,  		 //性别
				talk : function(){
					console.log(".......");
				},
				study : function(){
					console.log("good good study, day day up!");
				},
				edu : {
					"小学" : {
						name : "北大附小",
						addr : 
					},
					"中学" :"北大附中",
					"大小学" :"北大",
				},
				famliy : {
					"父亲" :"司机",
					"母亲" :"教师"
				}
			}
			
			//通过构造函数创建
			var Student = function(){
			
			}
			var stu2 = new Student();
			stu2.name = "王大锤";
			stu2.talk = function(){
			
			}	
			
			//判断对象属于哪个构造函数(类)
			console.log(stu instanceof Student);
			console.log(stu2 instanceof Student);
			
			
		</script>
	</head>
	<body>
		
	
	</body>	
</html>











